package com.glory.wxmemsicpda.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.glory.wxmemsicpda.R
import com.glory.wxmemsicpda.base.DataBindBaseViewHolder
import com.glory.wxmemsicpda.bean.EqpListBean
import com.glory.wxmemsicpda.databinding.ItemDieTypeListBinding

/**
 * @Author Zhangjy
 * @Date 2021/6/2 16:38
 * Description :
 */
class RejectCodeAdapter(data: List<EqpListBean?>?) :
    BaseQuickAdapter<EqpListBean?, DataBindBaseViewHolder>(
        R.layout.item_die_type_list, data as MutableList<EqpListBean?>?
    ) {

    override fun convert(helper: DataBindBaseViewHolder, item: EqpListBean?) {
        var itemDieTypeListBinding = helper.getDataBinding() as ItemDieTypeListBinding
        itemDieTypeListBinding.eqpListBean = item
        itemDieTypeListBinding.executePendingBindings()
    }
}